wayland: Stop capping cursor scales
authorMatthias Clasen <mclasen@redhat.com>
Fri, 13 Mar 2020 15:13:02 +0000 (11:13 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 13 Mar 2020 15:13:02 +0000 (11:13 -0400)
We don't load entire themes anymore, so we can
easily accomodate larger cursor scales now.

gdk/wayland/gdkcursor-wayland.c
gdk/wayland/gdkdisplay-wayland.h

index b6e636e029bd11db23d25e89e0491d59ad9e9752..f880b9da2dc999838912ed83d6e657a954f3a88c 100644 (file)
@@ -162,8 +162,6 @@ _gdk_wayland_cursor_get_buffer (GdkWaylandDisplay *display,
                                 int               *height,
                                 int               *scale)
 {
-  desired_scale = MIN (desired_scale, GDK_WAYLAND_MAX_THEME_SCALE);
-
   if (gdk_cursor_get_name (cursor))
     {
       struct wl_cursor *c;
index a8e4364787ffe50134d3371265ea89deca4e5ebe..4313ac3b17683abd5a1566a243c1e2ecb5607ee5 100644 (file)
@@ -50,9 +50,6 @@
 
 G_BEGIN_DECLS
 
-#define GDK_WAYLAND_MAX_THEME_SCALE 3
-#define GDK_WAYLAND_THEME_SCALES_COUNT GDK_WAYLAND_MAX_THEME_SCALE
-
 #define GDK_ZWP_POINTER_GESTURES_V1_VERSION 1
 
 typedef struct _GdkWaylandSelection GdkWaylandSelection;